package demo;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86131
 * Date: 2023-11-29
 * Time: 0:11
 */
public class Main {
    public static void main(String[] args) {
        CardGame cardGame = new CardGame();
        List<Card> ret = cardGame.buyCard();//调用了cardGame对象的buyCard()方法，并将返回的结果赋值给了ret
        System.out.println(ret);
        System.out.println("洗牌:");
        cardGame.shuffle(ret);    //洗牌
        System.out.println(ret);

        System.out.println("揭牌");
        List<List<Card>> card = cardGame.getCard(ret);
        System.out.println(card);

    }
}
